/*
 * @Author       : wangzhenguo
 * @Date         : 2021-03-22 14:57:57
 * @LastEditors  : wangzhenguo
 * @LastEditTime : 2021-03-24 14:26:42
 * @Description  : 通用路由
 */

const _import = require("./config/_import_" + process.env.NODE_ENV);

export default [
  // 默认页面
  {
    path: "/",
    redirect: "/home",
  },
  // 无权限页面
  {
    path: "/nopermission",
    component: _import("common/NoPermission"),
  },
  // 404
  {
    path: "*",
    name: 404,
    component: _import("common/404"),
  },
];
